---
description: >-
  Use @ContentChild, @ContentChildren, @ViewChild or @ViewChildren instead of the `queries` property of `@Component` or `@Directive`
  metadata.
options: null
optionsDescription: Not configurable.
rationale: |-

  The property associated with @ContentChild, @ContentChildren, @ViewChild or @ViewChildren
  can be modified only in a single place: in the directive's class. If you use the queries metadata
  property, you must modify both the property declaration inside the controller, and the metadata
  associated with the directive.

ruleName: no-queries-metadata-property
type: style
typescriptOnly: true
layout: rule
title: 'Rule: no-queries-metadata-property'
optionsJSON: 'null'
---